﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebSocketServer.WebSocketService.Interface
{
    public interface IWebSocketService
    {
        event Action<string> MessageReceived;
        event Action Disconnected;

        Task ConnectAsync();
        Task SendAsync(string message);
        Task CloseAsync();

        void Dispose();
    }

}
